﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ec="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
	 xmlns:data="clr-namespace:TestPhone"
    xmlns:Toolkit="clr-namespace:Microsoft.Phone.Maps.Toolkit;assembly=Microsoft.Phone.Controls.Toolkit"
    x:Class="TestPhone.MainPage"
    mc:Ignorable="d"
      SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
        <DataTemplate x:Key="DataTemplate1">
            <Grid>
                <TextBlock TextWrapping="Wrap" Text="{Binding}" FontSize="96" FontWeight="Bold"/>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Key="DataTemplate2">
            <Grid x:Name="TileItem"  Background="{StaticResource PhoneAccentBrush}" Margin="10" Tap="TileItem_Tap">
                <Image HorizontalAlignment="Center" Height="120" VerticalAlignment="Center" Width="120" Source="{Binding Image}" IsHitTestVisible="False"/>
                <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Title}" VerticalAlignment="Bottom" Margin="5,0,0,5" IsHitTestVisible="False"/>
                <toolkit:ContextMenuService.ContextMenu>
                    <toolkit:ContextMenu>
                        <toolkit:MenuItem Header="删除" Click="MenuItem_Click" IsEnabled="{Binding CanDelete}"/>
                    </toolkit:ContextMenu>
                </toolkit:ContextMenuService.ContextMenu>
            </Grid>
        </DataTemplate>
        <ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
            <toolkit:WrapPanel/>
        </ItemsPanelTemplate>
    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->

    <phone:PhoneApplicationPage.FontFamily>
        <StaticResource ResourceKey="PhoneFontFamilyNormal"/>
    </phone:PhoneApplicationPage.FontFamily>
    <phone:PhoneApplicationPage.FontSize>
        <StaticResource ResourceKey="PhoneFontSizeNormal"/>
    </phone:PhoneApplicationPage.FontSize>
    <phone:PhoneApplicationPage.Foreground>
        <StaticResource ResourceKey="PhoneForegroundBrush"/>
    </phone:PhoneApplicationPage.Foreground>
    <phone:Pivot Title="EasyMKV">
        <phone:PivotItem CacheMode="{x:Null}" Header="我的视频">
            <phone:LongListSelector Name="MyList" ItemTemplate="{StaticResource DataTemplate2}" LayoutMode="Grid" GridCellSize="200,200">

            </phone:LongListSelector>
        </phone:PivotItem>
        <phone:PivotItem CacheMode="{x:Null}" Header="播放设置">
            <StackPanel Name="b1">
                <TextBlock Text="字幕缩放比例" Margin="20,20,20,10" FontSize="30"/>
                <toolkit:PhoneTextBox x:Name="txtFontScale" TextWrapping="Wrap" Text="1.0" VerticalScrollBarVisibility="Disabled" TextChanged="txtFontScale_TextChanged"/>
                <TextBlock Text="数据读取间隔" Margin="20,20,20,10" FontSize="30"/>
                <toolkit:PhoneTextBox x:Name="txtDueTime" TextWrapping="Wrap" Text="150" VerticalScrollBarVisibility="Disabled" TextChanged="txtDueTime_TextChanged"/>
            </StackPanel>
        </phone:PivotItem>
    </phone:Pivot>

</phone:PhoneApplicationPage>